// TypeScript file
class roomInfo extends eui.Component{
    private roomNum_tx:eui.Label;
    private rule_tx:eui.Label;
    private round_tx:eui.Label;
    private qxd_ui:eui.Image;

    public constructor(){
        super();
        this.once(eui.UIEvent.COMPLETE,this.onComplete,this);
        this.skinName = "src/Game/gameRoom/roomInfoSkin.exml";
    }
    private onComplete(){
        this.qxd_ui.visible = false;
    }
    public setContent(_roomNum:string,_rule:string,_round:string,_qxd:boolean = false){
        this.roomNum_tx.text = _roomNum;
        this.rule_tx.text = _rule;
        this.round_tx.text = _round;
        if(_qxd){
            this.qxd_ui.visible = true;
           // this.qxd_ui.x = this.round_tx.x+(String(this.round_tx.text).length*15);
        }
    }
}